﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BrnMall.Manager.Domain.Store;

namespace BrnMall.Manager.Manager.Store
{
    /// <summary>
    /// 
    /// </summary>
    public static class RegionManager
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="r"></param>
        /// <returns></returns>
        public static bool AddRegion(Region r)
        {
            using (var db = new QDMallDatabase())
            {
                db.Insert(r);
                return r.Regionid > 0;
            }
        }
    }
}
